home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8875 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  754 b 

  1. From: LittleGuyRascal@msn.com (Gregory Saxton)
  2. Subject: RE: polymorphism and style
  3. Date: 27 Feb 96 03:36:08 -0800
  4. References: <4gr4ur$n13@alpha.pcix.com>
  5. Message-ID: <00001a81+0000a893@msn.com>
  6. Path: news.msn.com!msn.com
  7. Newsgroups: comp.lang.c++
  8. Organization: The Microsoft Network (msn.com)
  9.  
  10. My experience is that #3 is the best in terms of OO Class Design, 
  11. maintainability and certainly debugging since you are using pointers. 
  12.  
  13.  
  14. Unneccessary casting of pointers can obfuscate your code and decrease 
  15. readability.  Personally I would not implement #2 because it is not 
  16. required using your 3rd solution and could lead future users of your 
  17. class to believe that protocol is the defacto standard.
  18.  
  19. Elegant solutions need not be complex.  Good ideas!
  20.